from django.shortcuts import render, redirect


def index(request):
    return render(request,'index.html')


def logout(request):
    request.session.flush()#清空session数据
    return redirect('index')

